#include "stdio.h"

void test(int a) {
    printf("test %d\n", a);
}

void cb(void *param, int size){
    void (*p)(int);
    p = param;
    p(size);
}

int main() {
    void (*p)(int);
    p = test;
    p(1);
    cb(p, 2);
    return 0;
}